function Write-LogMessage 
{
    param($source,$message)
   
   $msg = $message -replace "'"
   
   $sql = "INSERT INTO error_log (source, message) VALUES('$source','$msg')"
   
   try { Get-OLEDBData $Script:OleDbConnString $sql }
   catch {
      $ex = $_.Exception
      Write-Error "Insert-LogMessage $ex.message"
      continue
   }


}
